﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using Framework.Platform.Components.UI.Field;

namespace Framework.Platform.Components.UI.View
{
    public partial class BaseModuleView : BaseView, IModuleView
    {
        private IDictionary<string, ViewCommander> _EditModeCommandersMap = new Dictionary<string, ViewCommander>();

        private IList<ViewCommander> _EditModeCommanders;

        public IList<ViewCommander> EditModeCommanders
        {
            get
            {
                if (_EditModeCommanders == null)
                {
                    _EditModeCommanders = new List<ViewCommander>();
                }
                return _EditModeCommanders;
            }
            set { _EditModeCommanders = value; }
        }

        public BaseModuleView()
        {
            InitializeComponent();
        }

        #region IModuleView Members

        private IList<IField> _Fields;
        public IList<IField> Fields
        {
            get
            {
                return this._Fields;
            }
            set
            {
                this._Fields = value;
            }
        }

        #endregion
    }
}
